import delimited "$model/simulated_data/simulated_data_base_combined.csv", clear
ren v1 uniqid
ren v2 year
ren v3 mu
ren v4 e
ren v5 m
ren v6 p
ren v7 l
ren v8 age
ren v9 x
ren v10 ac
ren v11 f
ren v12 lp_type
ren v13 h
ren v14 wage
ren v15 l_prime
ren v16 s
ren v17 agemax
ren v18 tau
ren v19 util
ren v20 cons
ren v21 race

//idea: among women with young kids, how many of them use relative care as main childcare?
keep if ac>1 //limit to women with young kids
tab h
tab l
tab tau
tab h if tau == 1
tab h if tau == 2
gen rel_care = (h == 1 & l == 1 & tau == 1) //interpretation: working, in gpar location, with helpful grandparents, i.e. receiving the transfer
		  
tab rel_care if m == 1
tab rel_care if m>1		  
		  
		  
//end of dofile
